package com.itheima.mapper;

import com.github.pagehelper.Page;
import com.itheima.pojo.Emp;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDate;
import java.util.List;

@Mapper
public interface EmpMapper {
//    //获取总记录数
//    @Select("select count(*) from emp")
//    public Long count();
//
//    @Select("select * from emp limit #{start}, #{pageSize}")
//    public List<Emp> page(Integer start, Integer pageSize);

//    //PageHelper分页插件
//    @Select("select * from emp")
//    public List<Emp> list();

    //XML条件查询
    public List<Emp> list(String name, Short gender, LocalDate begin, LocalDate end);
}
